<?
/* header("Content-Type: text/html; charset=UTf-8");
header("Access-Control-Alow-Origin: *");
header("Access-Control-Alow-Headers: Origin, X-Requested-with, Content-Type, Accept");
header("Access-Control-Alow-Methods: GET, POST, PUT, DELETE"); */
include_once('inc/CDCApp/func.inc.php');
include_once('./en.php');
//$_POST = json_decode($HTTP_RAW_POST_DATA,true);
//file_put_contents('./data.txt',var_export($_POST,true));
ob_end_clean();
$type = Q('raw.type','');


switch($type){
	case 'editModel':
		$formJson1 = Q('raw.formJson','');
		file_put_contents('./data1.json',$formJson1);
		//$formJson2=json_decode(decrypt($formJson1),true);
		//file_put_contents('./data1.txt',var_export($formJson2,true));
		
				
		exit(json_encode(array('dd'=>2,'CC'=>3434)));
	break;
}


?>